package com.css.fxfzypg.modules.baseData.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * data_pbe
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PbeEntity implements Serializable {

    private Integer id;
    @Excel(name = "人口（人）")
    private Float population;
    @Excel(name = "建筑面积（平方米）")
    private Float coveredarea;
    @Excel(name = "GDP（万元）")
    private Float gdp;
    @Excel(name = "城镇/农村")
    private String townorcontry;

    private String isdelete;

    private Date creattime;

    private String maxLongitude;//经度最大值
    private String minLongitude;//经度最小值
    private String maxLatitude;//纬度最大值
    private String minLatitude;//纬度最小值
    private String province;//省
    private String city;//市
    private String county;//区县
    private String fileUuid;//文件UUID
    private String geomText;//空间数据解析字符串
    private String pbeId;//主键ID
    private String town;//乡镇
    //结构类型占比
    private String jglxGcjz;//高层建筑占比（%）
    private String jglxGjg;//钢结构占比（%）
    private String jglxDcgjhntjg;//多层钢筋混凝土结构占比（%）
    private String jglxZhjg;//砖混结构占比（%）
    private String jglxZmjg;//砖木结构占比（%）
    private String jglxTjg;//土结构占比（%）
    private String jglxMjg;//木结构占比（%）
    private String jglxSjg;//石结构占比（%）
    private String jglxQtjg;//其他结构占比（%）
    private String jglxType;//是否有结构类型占比数据：1有数据 2全为空
    private String zzfwzb;//住宅房屋占比（%）

    private static final long serialVersionUID = 1L;

    /*public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Float getPopulation() {
        return population;
    }

    public void setPopulation(Float population) {
        this.population = population;
    }

    public Float getCoveredarea() {
        return coveredarea;
    }

    public void setCoveredarea(Float coveredarea) {
        this.coveredarea = coveredarea;
    }

    public Float getGdp() {
        return gdp;
    }

    public void setGdp(Float gdp) {
        this.gdp = gdp;
    }

    public String getTownorcontry() {
        return townorcontry;
    }

    public void setTownorcontry(String townorcontry) {
        this.townorcontry = townorcontry;
    }

    public String getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(String isdelete) {
        this.isdelete = isdelete;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PbeEntity other = (PbeEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPopulation() == null ? other.getPopulation() == null : this.getPopulation().equals(other.getPopulation()))
            && (this.getCoveredarea() == null ? other.getCoveredarea() == null : this.getCoveredarea().equals(other.getCoveredarea()))
            && (this.getGdp() == null ? other.getGdp() == null : this.getGdp().equals(other.getGdp()))
            && (this.getTownorcontry() == null ? other.getTownorcontry() == null : this.getTownorcontry().equals(other.getTownorcontry()))
            && (this.getIsdelete() == null ? other.getIsdelete() == null : this.getIsdelete().equals(other.getIsdelete()))
            && (this.getCreattime() == null ? other.getCreattime() == null : this.getCreattime().equals(other.getCreattime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPopulation() == null) ? 0 : getPopulation().hashCode());
        result = prime * result + ((getCoveredarea() == null) ? 0 : getCoveredarea().hashCode());
        result = prime * result + ((getGdp() == null) ? 0 : getGdp().hashCode());
        result = prime * result + ((getTownorcontry() == null) ? 0 : getTownorcontry().hashCode());
        result = prime * result + ((getIsdelete() == null) ? 0 : getIsdelete().hashCode());
        result = prime * result + ((getCreattime() == null) ? 0 : getCreattime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", population=").append(population);
        sb.append(", coveredarea=").append(coveredarea);
        sb.append(", gdp=").append(gdp);
        sb.append(", townorcontry=").append(townorcontry);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", creattime=").append(creattime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }*/
}